package com.cencat.invoice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 发票管理服务启动类
 * 
 * @author cencat
 * @version 1.0
 * @since 2024-12-19
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.cencat.invoice.mapper")
public class InvoiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(InvoiceApplication.class, args);
        System.out.println("");
        System.out.println("   ____                      _     ___                   _          ");
        System.out.println("  / ___|___ _ __   ___ __ _| |_  |_ _|_ ____   _____ (_) ___ ___ ");
        System.out.println(" | |   / _ \ '_ \ / __/ _` | __|  | || '_ \ \ / / _ \| |/ __/ _ \");
        System.out.println(" | |__|  __/ | | | (_| (_| | |_   | || | | \ V / (_) | | (_|  __/");
        System.out.println("  \____\___|_| |_|\___\__,_|\__| |___|_| |_|\_/ \___/|_|\___\___|");
        System.out.println("");
        System.out.println("发票管理服务启动成功！");
        System.out.println("接口文档地址: http://localhost:8086/doc.html");
        System.out.println("");
    }

}